package com.bsdk.install.device.lockLora.v2.cmd;

/**
 * @projectName: lock
 * @package: com.hlslock.lock.cmd
 * @className: CMD8030
 * @author: HansYoung
 * @description: 下发远程开锁
 * @date: 2023/12/6 14:16
 * @version: 1.0
 */
public class CMD8030 extends CMD {

    public static class Builder extends CMD {

        public Builder setUId(String uId) {
            this.uId = uId;
            return this;
        }

        public Builder setCMac(String cMac) {
            this.cMac = cMac;
            return this;
        }

        public Builder setDevId(String devId) {
            this.devId = devId;
            return this;
        }

        public Builder setCmd(String cmd) {
            this.cmd = cmd;
            return this;
        }


        public CMD bulid() {
            StringBuilder data = new StringBuilder();
            int i, j;
            String m_buf;
            byte[] m_data = new byte[10];
            m_buf = Packet_data((byte) 0x80, (byte) 0x30, m_data, 0);
            System.out.println("ddd" + m_buf);
            //data.append("0202803003B3");
            return new CMD(uId, cMac, devId, cmd, m_buf);
        }
    }

    public static Builder getPushPayloadBuider() {
        return new Builder();
    }
}